home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 12 / Cream of the Crop 12 (Part II) / Cream of the Crop 12 (Part II).iso / OS2 / VD08BIN.ZIP / usr / include / pm / menuitem.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-13  |  1.4 KB  |  57 lines

  1. /* -------------------------------------------------------------------
  2.  
  3.     Project: Objective C PM library
  4.  
  5.     Objective-C interface file for the class menuitem
  6.  
  7.     COPYRIGHT (C), 1995, Thomas Baier
  8.     ALL RIGHTS RESERVED.
  9.  
  10.     Date:                Rev: 0.1
  11.     1995-Jul-28            ___
  12.  
  13.  */
  14.  
  15. #ifndef _MENUITEM_H_
  16. #define _MENUITEM_H_
  17.  
  18. /*====================================================================
  19.                      Interface of class menuitem                      
  20. ====================================================================*/
  21. #include <pm/pm.h>
  22.  
  23. @interface MenuItem : Object
  24. {
  25.   ULONG  pmId;
  26.   char  *title;
  27.   id     subMenu;
  28. }
  29.  
  30. /* -------------------------- Initialize -------------------------- */
  31. -init;
  32. -initWithId: (ULONG) anId andTitle: (char *) aTitle;
  33. -initWithId: (ULONG) anId andTitle: (char *) aTitle subMenu: aSubMenu;
  34.  
  35. /* ----------------------------- Free ----------------------------- */
  36. -free;
  37.  
  38. /* ----------- Methods for access to Instance Variables ----------- */
  39. -setTitle: (char *) aTitle;
  40. -(char *) title;
  41. -setPmId: (ULONG) anId;
  42. -(ULONG) pmId;
  43. -setSubMenu: aSubMenu;
  44. -subMenu;
  45.  
  46. /* ------------------------ Public methods ------------------------ */
  47.  
  48. /* ----------------------- Private methods ------------------------ */
  49.  
  50. /* ---------------------- Archiving methods ----------------------- */
  51. -read: (TypedStream *) aStream;
  52. -write: (TypedStream *) aStream;
  53.  
  54. @end
  55.  
  56. #endif
  57.